package com.woniuxy.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.woniuxy.entity.GoodsManagement;
import com.woniuxy.mapper.GoodsManagementMapper;
import com.woniuxy.service.GoodsManagementService;

@Service
public class GoodsManagementServiceImpl implements GoodsManagementService{

	@Autowired
	private GoodsManagementMapper goodsManagementMapper;

	@Override
	public List<GoodsManagement> findGoodsManagements() {
		return goodsManagementMapper.findGoodsManagements();
	}

	@Override
	public int addGoodsManagement(GoodsManagement goods) {
		return goodsManagementMapper.addGoodsManagement(goods);
	}

	@Override
	public GoodsManagement findGoodsByGmid(int gmid) {
		return goodsManagementMapper.findGoodsByGmid(gmid);
	}

	@Override
	public int modifyGoodsByGmid(GoodsManagement goods) {
		return goodsManagementMapper.modifyGoodsByGmid(goods);
	}

	
}
